package com.zyz.I_多线程.创建方式.Runnable;

/**
 * @author: vick
 * @Date: 2025/3/21
 * @Description:
 * @version: 1.0
 */
public class MyRunnable implements Runnable {

    /*
     * 重写run方法，完成线程执行的逻辑
     * */
    @Override
    public void run() {
        for (int i = 0; i < 10; i++) {
            System.out.println(Thread.currentThread().getName() + "正在运行" + i);
        }
    }
}
